# alist = [1, 2, 3, 4]
# print(alist[1:3])

# alist = [1, 2, 3, 4]
# print(alist[1:])                # 省略后边界, 表示获取到列表末尾
# print(alist[:-1])               # 省略前边界, 表示从列表开头获取
# print(alist[:])                 # 省略两个边界, 表示获取到整个列表.


# alist = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
# print(alist[::1])
# print(alist[::2])
# print(alist[::3])
# print(alist[::5])

# alist = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
# print(alist[::-1])
# print(alist[::-2])
# print(alist[::-3])
# print(alist[::-5])


#
# alist = [1, 2, 3, 4]
# print(alist[100:200])


# alist = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
# print(alist[::1])
# print(alist[::2])
# print(alist[::3])
# print(alist[1:-1:2])


a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
print(a[1:100])

